
const finanialArr = [
    {zh:'收预付款'},
    {zh:'转账'},
    {zh:'收入'},
    {zh:'支出'},
    {zh:'收款'},
    {zh:'付款'},
    {zh:'运费单'},
    {zh:'运费'},
    {zh:'运输付款'}
]

// 采购流程不同菜单对应的查询类型（subType）、弹窗保存类型（moduleType），linkbilllist组件查询类型（listType）
const menu =[
    {name:'直发厂家报价单',subType:'直发厂家报价',moduleType:'下达采购',listType:'',prefixNo:'ZFBJ'},
    {name:'厂家报价单',subType:'厂家报价',moduleType:'采购订单',prefixNo:'CJBJ'},
    {name:'直发采购退货',subType:'直发采购退货',moduleType:'直发采购',listType:'收费确认',type:'其他'},
    {name:'采购退货',subType:'采购退货',moduleType:'采购',listType:'采购',type:'入库'},
    {name:'直发运费单',subType:'直发运费',moduleType:'下达采购'},
    {name:'运费单',subType:'运费',moduleType:'采购订单'},
    {name:'直发运费付款',subType:'直发运输付款',moduleType:'下达采购'},
    {name:'运费付款',subType:'运输付款',moduleType:'采购订单'},
    {name:'直发付款凭证',subType:'直发付款',moduleType:'直发厂家报价',listType:'下达采购'},
    {name:'付款凭证',subType:'付款',moduleType:'采购订单'},
]
export function getSubType(key){
    console.log(this.$route.name,'route');
   let item = menu.find(v=>v.name === this.$route.name)
   if(item){
    return item[key]
   }else{
    return ''
   }
}
export {finanialArr}